# -- coding: utf-8 -- 
# Name: dice_roller_tests

import random

def randomNumgen(choice):
    if choice == 1:
        die = random.randint(1,6)
    elif choice == 2:
        die = random.randint(1,10)
    elif choice == 3:
        die = random.randint(1,100)
    elif choice == 4:
        die = random.randint(1,4)
    elif choice == 5:
        die = random.randint(1,8)
    elif choice == 6:
        die = random.randint(1,12)
    elif choice == 7:
        die = random.randint(1,20)
    else:
        return "shouldn`t be here invald choice"
    return die

def multidie(dice_num,die_type):
    final_roll = 0
    val = 0
    while val < dice_num:
        final_roll += randomNumgen(die_type)
        val += 1
    return final_roll

def test():
    _1d6 = multidie(1,1)
    print "1d6 = ",_1d6,"    "
    _2d6 = multidie(2, 1)
    print "_2d6 = ", _2d6, "    "
    _3d6 = multidie(3, 1)
    print "_3d6 = ", _3d6, "    "
    _4d6 = multidie(4, 1)
    print "_4d6 = ", _4d6, "    "
    _1d10 = multidie(1, 2)
    print "_1d10 = ", _1d10, "    "
    _2d10 = multidie(2, 2)
    print "_2d10 = ", _2d10, "    "
    _3d10 = multidie(2, 2)
    print "_3d10 = ", _3d10, "    "
    d100 = multidie(1, 3)
    print "d100 = ", d100, "    "

test()